<?php
// TODO 默认页面逻辑部分
class IndexAction extends Action {
    public function index(){
        header("Content-Type:text/html; charset=utf-8");
        echo '<div style="font-weight:normal;color:blue;float:left;width:345px;text-align:center;border:1px solid silver;background:#E8EFFF;padding:8px;font-size:14px;font-family:Tahoma">^_^ Hello,欢迎使用<span style="font-weight:bold;color:red">ThinkPHP</span></div>';
    }
    public function md5(){
    	$username = $_GET['username']?$_GET['username']:'';
    	$password = $_GET['password']?$_GET['password']:'';
		$t1 = gettimeofday(true);
		$x = md5x($password);
		$t2 = gettimeofday(true);
		echo ($t2-$t1)*1000000;
		//echo ($t2['sec'] - $t1['sec']) * 1000 + ($t2['usec'] - $t1['usec']) / 1000 . "\n";
		echo "\n";
		echo "$password : ".$x." | ".md5($password);

    }
}